package com.dm.cloud.gateway.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Administrator
 * @date 2022年 05月17日 17:53:33
 */

@RestController
@RequestMapping("break")
public class BreakController {

    @GetMapping("err")
    public Map<String,Object> sendErr(){
        Map<String,Object> m=new HashMap();
        m.put("errorCode","500");
        m.put("userMessage","接口访问失败，无法访问！");
        return m;
    }

}
